// 上传文件
const koaRouter = require("koa-router");

const uploadFileRouter = new koaRouter({ prefix: "/uploadFile" });

const { uploadFile, findFileById } = require("../controller/uploadFileController");

uploadFileRouter.post("/", uploadFile);
// 通过id查找文件
uploadFileRouter.get("/findFileById", findFileById);
module.exports = uploadFileRouter;